package io.wongxd.solution.data.kvholder

import com.tencent.mmkv.MMKVLogLevel

enum class KVLogLevel {

    LevelDebug,
    LevelInfo,
    LevelWarning,
    LevelError,
    LevelNone;

    internal val toMMKVLogLevel: MMKVLogLevel
        get() {
            return when (this) {
                LevelDebug -> MMKVLogLevel.LevelDebug
                LevelInfo -> MMKVLogLevel.LevelInfo
                LevelWarning -> MMKVLogLevel.LevelWarning
                LevelError -> MMKVLogLevel.LevelError
                LevelNone -> MMKVLogLevel.LevelNone
            }
        }

}